$(document).ready(
    function()
    {
        $("#mainnav").load("views/navmain.phtml");
    }
);